package com.wangzifan.service.impl;

import com.wangzifan.entity.Menu;
import com.wangzifan.mapper.MenuMapper;
import com.wangzifan.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getMenus(String username) {
        return menuMapper.getMenus(username);
    }
}
